<template>
  <Demo @hello="showHelloMsg" msg="你好啊" name="Rock">
    <template v-slot:xp>
			<span>小胖</span>
		</template>
		<template v-slot:ns>
			<span>男神</span>
		</template>
  </Demo>
</template>

<script>
import Demo from './components/demo.vue'
import {reactive} from 'vue'
export default {
  name: 'App',
  components:{
    Demo
  },
  setup(){
    function showHelloMsg(value){
      alert(`你好啊，你触发了hello事件，我收到的参数是:${value}！`)
    }
    return {
      showHelloMsg
    }
  }

}
</script>

<style>

</style>
